package com.module.rabbitmq.demo.delayedpay.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PayController {

    @RequestMapping("/pay/{orderId}")
    public String pay(@PathVariable String orderId, Model model) {

        // 写数据库

        model.addAttribute("orderId", orderId);
        return "success";
    }

}
